/**
 * 
 */
package com.demo2do.fms.entity.business.shipment;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 调度指令商品车（目前用于生成派车单、回单确认）
 * 
 * @author Ysy
 *
 */
@Entity
@Table(name = "VW_SHIPMENT_ALL_CAR")
public class ShipmentOrderItem {
    
    @Id
    @GeneratedValue(generator = "generator")
    @GenericGenerator(name = "generator", strategy = "assigned")
    @Column(name = "car_id")
    private Long id;
    
    private Long orderId;
    
    /** 小订单号：对应于Shipment中的shipmentId */
    private Long shipmentId;
    
    /** 调度指令号 */
    private String shipmentNumber;
    
    /** 运输方式 */
    @Column(name = "SHIPMENT_METHOD")
    private String transType;
    
    /** 颜色 */
    private String carColor;
    
    /** 车型 */
    private String carType;
    
    /** vin码 */
    private String vinCode;
    
    /** 数量 */
    private Long quantity;
    
    /** 制造商 */
    private String manufactor;
    
    /** 起始地 */
    private String startFacility;
    
    /** 目的地 */
    private String endFacility;
    
    /** 目的地地址 */
    private String destinationAddress;
    
    /** 目的地联系电话 */
    private String destinationTelecomNumber;
    
    /** 装车道号 */
    @Column(name = "LOAD_CAR_PORT")
    private String driveWay;
    
    /** 预计装运时间 */
    @Column(name = "ESTIMATED_LOAD_DATE")
    private Date loadDate;
    
    /** 预计起运时间 */
    @Column(name = "ESTIMATED_DEPT_DATE")
    private Date deptDate;
    
    /** 预计到达时间 */
    @Column(name = "ESTIMATED_ARRIVE_DATE")
    private Date arriveDate;
    
    /** 是否来自ORDER */
    @Column(name = "IS_FROM_ORDER")
    private Boolean fromOrder;
    
    /** 是否回单 */
    private Boolean accomplishConfirm;
    
    /** 是否电子回单确认 */
    @Column(name = "IS_ELECTRONIC_CONFIRM")
    private Boolean electronicConfirm;
    
    /**
     * 
     * the default constructor
     */
    public ShipmentOrderItem() {
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @return the orderId
     */
    public Long getOrderId() {
        return orderId;
    }

    /**
     * @return the shipmentId
     */
    public Long getShipmentId() {
        return shipmentId;
    }

    /**
     * @return the shipmentNumber
     */
    public String getShipmentNumber() {
        return shipmentNumber;
    }

    /**
     * @return the transType
     */
    public String getTransType() {
        return transType;
    }

    /**
     * @return the carColor
     */
    public String getCarColor() {
        return carColor;
    }

    /**
     * @return the carType
     */
    public String getCarType() {
        return carType;
    }

    /**
     * @return the vinCode
     */
    public String getVinCode() {
        return vinCode;
    }

    /**
     * @return the quantity
     */
    public Long getQuantity() {
        return quantity;
    }

    /**
     * @return the manufactor
     */
    public String getManufactor() {
        return manufactor;
    }

    /**
     * @return the startFacility
     */
    public String getStartFacility() {
        return startFacility;
    }

    /**
     * @return the endFacility
     */
    public String getEndFacility() {
        return endFacility;
    }

    /**
     * @return the destinationAddress
     */
    public String getDestinationAddress() {
        return destinationAddress;
    }

    /**
     * @return the destinationTelecomNumber
     */
    public String getDestinationTelecomNumber() {
        return destinationTelecomNumber;
    }

    /**
     * @return the driveWay
     */
    public String getDriveWay() {
        return driveWay;
    }

    /**
     * @return the loadDate
     */
    public Date getLoadDate() {
        return loadDate;
    }

    /**
     * @return the deptDate
     */
    public Date getDeptDate() {
        return deptDate;
    }

    /**
     * @return the arriveDate
     */
    public Date getArriveDate() {
        return arriveDate;
    }

    /**
     * @return the fromOrder
     */
    public Boolean getFromOrder() {
        return fromOrder;
    }

    /**
     * @return the accomplishConfirm
     */
    public Boolean getAccomplishConfirm() {
        return accomplishConfirm;
    }
    
    /**
     * @return
     */
    public Boolean getElectronicConfirm() {
        return electronicConfirm;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @param orderId the orderId to set
     */
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    /**
     * @param shipmentId the shipmentId to set
     */
    public void setShipmentId(Long shipmentId) {
        this.shipmentId = shipmentId;
    }

    /**
     * @param shipmentNumber the shipmentNumber to set
     */
    public void setShipmentNumber(String shipmentNumber) {
        this.shipmentNumber = shipmentNumber;
    }

    /**
     * @param transType the transType to set
     */
    public void setTransType(String transType) {
        this.transType = transType;
    }

    /**
     * @param carColor the carColor to set
     */
    public void setCarColor(String carColor) {
        this.carColor = carColor;
    }

    /**
     * @param carType the carType to set
     */
    public void setCarType(String carType) {
        this.carType = carType;
    }

    /**
     * @param vinCode the vinCode to set
     */
    public void setVinCode(String vinCode) {
        this.vinCode = vinCode;
    }

    /**
     * @param quantity the quantity to set
     */
    public void setQuantity(Long quantity) {
        this.quantity = quantity;
    }

    /**
     * @param manufactor the manufactor to set
     */
    public void setManufactor(String manufactor) {
        this.manufactor = manufactor;
    }

    /**
     * @param startFacility the startFacility to set
     */
    public void setStartFacility(String startFacility) {
        this.startFacility = startFacility;
    }

    /**
     * @param endFacility the endFacility to set
     */
    public void setEndFacility(String endFacility) {
        this.endFacility = endFacility;
    }

    /**
     * @param destinationAddress the destinationAddress to set
     */
    public void setDestinationAddress(String destinationAddress) {
        this.destinationAddress = destinationAddress;
    }

    /**
     * @param destinationTelecomNumber the destinationTelecomNumber to set
     */
    public void setDestinationTelecomNumber(String destinationTelecomNumber) {
        this.destinationTelecomNumber = destinationTelecomNumber;
    }

    /**
     * @param driveWay the driveWay to set
     */
    public void setDriveWay(String driveWay) {
        this.driveWay = driveWay;
    }

    /**
     * @param loadDate the loadDate to set
     */
    public void setLoadDate(Date loadDate) {
        this.loadDate = loadDate;
    }

    /**
     * @param deptDate the deptDate to set
     */
    public void setDeptDate(Date deptDate) {
        this.deptDate = deptDate;
    }

    /**
     * @param arriveDate the arriveDate to set
     */
    public void setArriveDate(Date arriveDate) {
        this.arriveDate = arriveDate;
    }

    /**
     * @param fromOrder the fromOrder to set
     */
    public void setFromOrder(Boolean fromOrder) {
        this.fromOrder = fromOrder;
    }

    /**
     * @param accomplishConfirm the accomplishConfirm to set
     */
    public void setAccomplishConfirm(Boolean accomplishConfirm) {
        this.accomplishConfirm = accomplishConfirm;
    }
    
    /**
     * @param electronicConfirm
     */
    public void setElectronicConfirm(Boolean electronicConfirm) {
        this.electronicConfirm = electronicConfirm;
    }
    
}
